﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>jQuery Ajax</title>
    <!--http://weather.china.xappengine.com/api?city=shanghai-->
    <script type="text/javascript" src="../scripts/jquery-1.7.1.js"></script>
    <script type="text/javascript" src="../scripts/Barrett.js"></script>
    <script type="text/javascript" src="../scripts/BigInt.js"></script>
    <script type="text/javascript" src="../scripts/RSA.js"></script>
    <script type="text/javascript">
        //$(function () {
        //    $.support.cors = true;
        //    $("#btnAjaxJquery").click(function (event) {
        //        $.get("http://weather.china.xappengine.com/api?city=shanghai", "", function (data, textStatus) {
        //            $("#divResult").html(data);
        //        }, "html");
        //    });
        //})
        function cmdEncrypt() {
            setMaxDigits(129);
            var key = new RSAKeyPair("<%=strPublicKeyExponent%>", "", "<%=strPublicKeyModulus%>");
            var pwdMD5Twice = $.md5($.md5($("#txtPassword").attr("value")));
            var pwdRtn = encryptedString(key, pwdMD5Twice); $("#encrypted_pwd").attr("value", pwdRtn); $("#formLogin").submit();
            return;
        }
    </script>
</head>
<body>
    <button id="btnAjaxJquery">使用jQuery的load方法</button>
    <br />
    <div id="divResult"></div>
</body>
</html>
